package cn.edu.scau.cmi.zhengweibo.abstractFactory.factory;

import cn.edu.scau.cmi.zhengweibo.abstractFactory.domainAbstractClass.ConsumerGetmeat;

public abstract class AbstractFactory {
	public abstract ConsumerGetmeat createPork();
	public abstract ConsumerGetmeat createBeef();
	public abstract ConsumerGetmeat createChicken();
	
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "wens":
			return new WensFactory();
		case "tianbang":
			return new TianbangFactory();
		case "aonong":
			return new AonongFactory();
		}
		return null;

	}

}